package web.dmt.encoding ;

import java.io.* ;
import javax.servlet.* ;

public class Encoding implements Filter{
	private String charSet ;
	public void init(FilterConfig config) throws ServletException{
		this.charSet = config.getInitParameter("charset");
	}
	public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain)throws IOException,ServletException{
		request.setCharacterEncoding(this.charSet);
		chain.doFilter(request,response);
	}
	public void destroy(){
	
	}
}